package com.sdry.project.controller;


import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.sdry.project.entity.GenTd12Entity;
import com.sdry.project.service.GenTd12Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 科技成果 前端控制器
 * </p>
 *
 * @author chenBin
 * @since 2020-08-05
 */
@RestController
@RequestMapping("/project/gen-td12-entity")
public class GenTd12Controller {

    @Autowired
    private GenTd12Service genTd12Service;

    @RequestMapping(value = "/api/queryList")
    public List<GenTd12Entity> queryList() {
        Page<Object> objects = PageHelper.startPage(1, 10);
        List<GenTd12Entity> list = genTd12Service.list();
        PageInfo<GenTd12Entity> page = new PageInfo<GenTd12Entity>(list);
        return null;
    }
}
